<template>
  <div id="app">
    <!-- <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </nav> -->
    <!-- 导航 -->
    <navList></navList>
    <!-- 登录注册 -->
    <loginVue v-if="show"></loginVue>
    <router-view />
  </div>
</template>
<script>
import navList from "@/components/navList.vue";
import loginVue from "@/components/login.vue";
export default {
  components: { navList, loginVue },
  methods: {},
  computed: {
    show() {
      return this.$store.state.show;
    },
  },
};
</script>

<style lang="scss">
@import url("./assets/styles/common.scss");

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  width: 100%;
}
</style>
